#ifndef uSelJnlH
#define uSelJnlH

#include <Classes.hpp>
#include <Controls.hpp>
#include <Db.hpp>
#include <DBCtrls.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>
#include <CForm.h>
#include "Compta.h"
#include "CDBLkcb.h"
#include <Graphics.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include "CDBGrid.h"
#include "CTable.h"
#include <DBTables.hpp>
#include "CBitBtn.h"

class TdlgSelectJnl : public CForm
{
__published:
  TDataSource *dsJnx;
  CDBGrid *DBGrid1;
  TTableJnx *TableJnx1;
  TStringField *TableJnx1Code;
  TStringField *TableJnx1Intitule;
  TIntegerField *TableJnx1Nature;
  TIntegerField *TableJnx1Flags;
  TIntegerField *TableJnx1ModalitesSaisie;
  TStringField *TableJnx1CompteContrepartie;
  TIntegerField *TableJnx1DeviseDefClassique;
  TIntegerField *TableJnx1EncaisModSaisie;
  TStringField *TableJnx1EncaisCptTreso;
  TIntegerField *TableJnx1DeviseDefEncais;
  TStringField *TableJnx1CodeO;
  TIntegerField *TableJnx1AchVntModalSais;
  TIntegerField *TableJnx1AchVntLibelle;
  TIntegerField *TableJnx1AchVntDeviseDefaut;
  TSmallintField *TableJnx1AchVntModePaiement;
  TStringField *TableJnx1AchVntCptTVA_biens;
  TStringField *TableJnx1AchVntCptTVA_immo;
  TStringField *TableJnx1AchVntCptTVA_col;
  TStringField *TableJnx1AchVntBanquePaiement;
  TIntegerField *TableJnx1KmModalSais;
  TIntegerField *TableJnx1KmDeviseDefaut;
  TPanel *Panel1;
  CBitBtn *bCreer;
  CBitBtn *bSelectionner;
  CBitBtn *btAnnuler;
  TIntegerField *TableJnx1AchVntDematModalSais;
  void __fastcall bSelectionnerClick( TObject* pSender);
  void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  void __fastcall FilterRecord(TDataSet *DataSet, bool &Accept);
  void __fastcall bCreerClick(TObject *Sender);
  void __fastcall DBGrid1DblClick(TObject *Sender);
private:
  TTableJnx *m_ptblJnx;
  AnsiString *m_CodeJournal;
  bool m_VoirEIC,m_VoirReadOnly;
public:
  __fastcall TdlgSelectJnl(TTableJnx *ptblJnx,AnsiString *CodeJournal,bool VoirEIC,bool VoirReadOnly);
};

#endif
